/*
 *  Copyright (C) 2007 Veit Wehner.
 *  All Rights Reserved.
 *
 *  This is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This software is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this software; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
 *  USA.
 */



## OS mspgcc environment version 0.8

## The following targets will be defined:
##       all: build $(NAME).elf binary and $(NAME).lst assembly listing
##  download: build binary and download with msp430-jtag
##     clean: remove all build results 

## Dependencies to headers, libraries, sources and Makefiles will be
##   generated automaticaly by black magic in the makefile library

## Most projects only need to change the next five variables:
##        NAME: name of the project (used for output files like $(NAME).elf)
##	  LIBS: list of libs to be linked in (from libs directory)
##     SOURCES: list of sources to be assembled/compiled and linked in (extensions recognized: .S, .s, .c)
##     DEFINES: list of defines for compilation 

NAME	= sw_update
SOURCES	= $(NAME).c flash.c communication.c checksum_encryption.c
DEFINES = OS_SMCLK=8000000

## Other configuration variables:
##        ROOT: must point to the build environment's root directory
##    INCLUDES: default include directory 
##     MAKELIB: makefile with build environment's black magic 

ROOT		= ../..
INCLUDES	= -I$(ROOT)/include
LIBDIR		= $(ROOT)/lib
MAKELIB		= $(ROOT)/makelib/Makefile.resource
include $(MAKELIB)
